do the dirty on somebody
​(British English, informal) to cheat somebody who trusts you; to treat somebody badly or unfairly
I'd never do the dirty on my friends.